package com.corex.webservice;

import com.corex.responsebean.ScheduleResponse;
import com.corex.utils.Constants;

public class ScheduleService extends BaseService{
	public ScheduleResponse executeScheduleService(String date){
		ScheduleResponse scheduleResponse = new ScheduleResponse();
		setRequestPayload(date);
		setUrl(Constants.SCHEDULE_URL);
		setResponceClass(ScheduleResponse.class);
		scheduleResponse = executeRequest();
		return scheduleResponse;
	}
	
	private ScheduleResponse executeRequest(){
		ScheduleResponse scheduleResponse = new ScheduleResponse();
		try {
			scheduleResponse = (ScheduleResponse) execute();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return scheduleResponse;
	}
}
